package com.javaforever.dictionary.service;

import com.javaforever.dictionary.domain.Dictionary;
import java.util.List;

public interface DictionaryService{
	public List<Dictionary> listAllDictionarys() throws Exception;
	public boolean updateDictionary(Dictionary dictionary) throws Exception;
	public boolean deleteDictionary(Long dictionaryId) throws Exception;
	public boolean addDictionary(Dictionary dictionary) throws Exception;
	public boolean softDeleteDictionary(Long dictionaryId) throws Exception;
	public Dictionary findDictionaryByDictionaryId(Long dictionaryId) throws Exception;
	public Dictionary findDictionaryByDictionaryName(String dictionaryName) throws Exception;
	public List<Dictionary> searchDictionarysByDictionaryName(String dictionaryName) throws Exception;
	public List<Dictionary> listActiveDictionarys() throws Exception;
	public List<Dictionary> listAllDictionarysByPage(int pagesize,int pagenum) throws Exception;
	public void deleteAllDictionarys(String ids) throws Exception;
	public void softDeleteAllDictionarys(String ids) throws Exception;
	public Boolean toggleDictionary(Long dictionaryId) throws Exception;
	public Boolean toggleOneDictionary(Long dictionaryId) throws Exception;
	public List<Dictionary> searchDictionarysByFieldsByPage(Dictionary dictionary,Long pagenum,Long pagesize) throws Exception;
	public int countDictionarysPage(int pagesize) throws Exception;
	public Long countActiveDictionaryRecords() throws Exception;
	public Long countAllDictionaryRecords() throws Exception;
	public Long countSearchDictionarysByFieldsRecords(Dictionary dictionary) throws Exception;
}
